<template>
  <tool-page title="生成UUID" :value="value" @generate="generate" :remark="remark">
    <template #buttonBefore>
      <Button type="success" @click="generate(true)">简单的</Button>
    </template>
  </tool-page>
</template>

<script>

export default {
  name: "GenerateUUID",
  data() {
    return {
      value: '',
      remark: '生成UUID（通用唯一识别码）'
    }
  },
  methods: {
    generate(simple) {
      this.value = this.simpleUtils.uuid(simple);
    }
  },
  created() {
    this.generate();
  }
}
</script>

<style scoped>

</style>
